package com.citywithincity.api.upload;

import java.io.File;

/**
 * 文件信息
 * @author randy
 *
 */
public class FileInfo {
	private int type;
	private byte[] bytes;
	//文件相对路径
	private String path;
	//文件
	private File file;
	//参数名称
	private String name;
	//扩展名称
	private String ext;
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public File getFile() {
		return file;
	}
	public void setFile(File file) {
		this.file = file;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getExt() {
		return ext;
	}
	public void setExt(String ext) {
		this.ext = ext;
	}
	
	@Override
	public String toString() {
		return new StringBuilder("File:{name:")
				.append(name)
				.append(",path:").append(path).append('}').toString();
		
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public void setBytes(byte[] bytes) {
		this.bytes = bytes;
	}
	public byte[] getBytes() {
		return bytes;
	}
	
}
